import useStore from '@/store/index';
import heyui from 'heyui';
import "heyui/themes/index.less";
import paasComponentLibrary from 'paas-component-library';
import { createPinia } from 'pinia';
import piniaPersist from 'pinia-plugin-persist';
import { createApp } from 'vue';
import App from './App.vue';
import api from "./assets/js/api.js";
import global from "./assets/js/global.js";
import "./assets/style/global.less";
import router from './router';
import 'remixicon/fonts/remixicon.css';

const pinia = createPinia()
pinia.use(piniaPersist)

const app = createApp(App)
app.use(global);
app.use(router)
app.use(pinia)
app.use(heyui)
app.use(api)
app.use(paasComponentLibrary)
app.config.globalProperties.$store = useStore();

app.mount('#app')
